package com.fantuan.weixin.bean;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;

public abstract class OutMessage {

	//发送方帐号（一个OpenID）
	private String toUserName;
	public String getToUserName() {
		return toUserName;
	}

	public void setToUserName(String toUserName) {
		this.toUserName = toUserName;
	}

	public String getFromUserName() {
		return fromUserName;
	}

	public void setFromUserName(String fromUserName) {
		this.fromUserName = fromUserName;
	}

	public long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(long createTime) {
		this.createTime = createTime;
	}

	public String getMsgType() {
		return msgType;
	}

	public void setMsgType(String msgType) {
		this.msgType = msgType;
	}

	//开发者微信号
	private String fromUserName;
	//消息创建时间 （整型）,10位，转换+000
	private long createTime;
	private String msgType;
	
	public String toString() {
		return ReflectionToStringBuilder.toString(this);
	}
	
	public abstract String toXML();
}
